package lianbiaoti;

public class Display {

    public static void main(String[] args) {
        Test test = new Test();
        test.addFirst(1);
        test.addFirst(2);
        test.addFirst(4);
        test.addFirst(2);
        test.addFirst(1);
       boolean ret= test.chkPalindrome();
        System.out.println(ret);
    }
    public static void main4(String[] args) {
        Test test = new Test();
        test.addFirst(1);
        test.addFirst(2);
        test.addFirst(4);


        Test test2 = new Test();
        test2.addFirst(2);
        test2.addFirst(3);
        test2.addFirst(5);


       Test.Node rwe= Test.mergeTwoLists(test.head,test2.head);
       test.display(rwe);
    }

    public static void main1(String[] args) {
        Test test = new Test();
        test.addFirst(1);
        test.addFirst(2);
        test.addFirst(4);
        Test test2 = new Test();
        test2.addFirst(1);
        test2.addFirst(3);
        test2.addFirst(4);



//        Test test = new Test();
//        test.creatList();
//        test.addFirst(50);
//        Test.Node re=test.km();
//        test.display2(re);
//        test.display2(test.k(6));
//        Test.Node ret2=new Test.Node(10);
//        Display display= new Display();
//        Test.Node reee=display.mergeTwoLists(ret2,ret2);
//        System.out.println(reee);
        }
}
